package com.aaa.fees.dao;

import com.aaa.entity.CareHistory;
import com.aaa.vo.Result;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;
@Repository
public interface PayChargeDao extends BaseMapper<CareHistory> {
    //@Select(value = "select * from his_care_order_item hcoi join (select hco.co_id,hco.ch_id from his_care_order hco) hcos on hcoi.co_id=hcos.co_id join(select sch.ch_id,sch.reg_id,sch.user_name,sch.dept_name,sch.patient_name,sch.care_time,sch.case_title,sch.case_result,sch.doctor_tips from his_care_history sch join(select * from his_order_charge hoc) soc on sch.reg_id=soc.reg_id) scoc on hcos.ch_id=scoc.ch_id where reg_id=#{regId}")
    //Result<Map<String, Object>> queryByIdHistory(String regId);
}
